package com.unknowpupil.web.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

import com.unknowpupil.web.base.AbstractBaseDomain;
import lombok.Data;

@Data
@Table(name = "coin_currencies")
public class Currencies extends AbstractBaseDomain implements Serializable {

    /**
     * 币种名
     */
    @Column(name = "currency")
    private String currency;

    /**
     * 价格人名币
     */
    @Column(name = "price")
    private BigDecimal price;
    /**
     * 是否同步价格 0不同步 1同步
     */
    @Column(name = "is_syn_price")
    private int isSynPrice;
    /**
     * 是否创建钱包
     */
    @Column(name = "is_create")
    private int isCreate;

    /**
     * 链：0：以太坊 1 比特链
     */
    @Column(name = "line")
    private Integer line;

    /**
     * 删除状态：0正常：1删除
     */
    @Column(name = "del_falg")
    private Integer delFalg;

    /**
     * 成交量(最近的24小时)
     */
    @Column(name = "vol")
    private BigDecimal vol;

    /**
     * 最新成交价
     */
    @Column(name = "`last`")
    private BigDecimal last;

    /**
     * 卖一价
     */
    @Column(name = "sell")
    private BigDecimal sell;

    /**
     * 买一价
     */
    @Column(name = "buy")
    private BigDecimal buy;

    /**
     * 最高价
     */
    @Column(name = "high")
    private BigDecimal high;

    /**
     * 最低价
     */
    @Column(name = "low")
    private BigDecimal low;

    /**
     * 返回数据时服务器时间
     */
    @Column(name = "`time`")
    private Date time;

    private static final long serialVersionUID = 1L;
}
